package 笔记.设计模式.代理模式;

/**
 * @author chenhailong
 * @ClassName: Proxy
 * @Description: 代理人
 * @date 2021/7/16 14:26
 * @Version 1.0
 */
public class Proxy {

    private ZhangSan zhangSan;

    Proxy(ZhangSan zhangSan){
        this.zhangSan = zhangSan;
    }


    public void behavior() {
        zhangSan.marry();
        proxy();
    }

    private void proxy() {
        System.out.println("帮助张三主持婚礼。。。。。。。");
    }
}
